<?php
// define constants
define('SERVER', 'nikolaswo.fatcowmysql.com');
define('USER', 'basics');
define('PASSWORD', 'basics');
define('DB', 'basics');

// connect to MySQL
$db = mysqli_connect(SERVER, USER, PASSWORD);

// test connection
if(mysqli_connect_errno()) {
	echo "<h1>Error establishing connection with database</h1>";
} else  {
	$db->select_db(DB);
}
?>